Skip to content

fix(ios): run a coordinate press on a SpringBoard surface in place - #4884

Merged
thymikee merged 4 commits into
mainfrom
t3/fix-ios-notification-banner-press
Nov 21, 2026
Merged

thymikee merged 4 commits into
mainfrom
t3/fix-ios-notification-banner-press

Conversation

@thymikee

@thymikee thymikee commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #4655. On iOS, a coordinate press while the session app ran in the background activated the app first (stale_target), so a banner tap landed on the app. Now, when testmanagerd's hit test at an on-screen point answers SpringBoard's pid, the tap runs against SpringBoard with no activation. Another app's point, an off-screen point, or no answer within 1 s keeps the activation. A stopped session app keeps the launch. Home Screen and Control Center points are SpringBoard too.

Before / after

Settings session, home, Messages push, press 220 91 on the banner (iPhone 18 Pro Max simulator, iOS 27.0):

  • Before (origin/main): targetActivation {priorState: 2, reason: stale_target}; Settings in front, banner lost.
  • After: no targetActivation; Messages opens.
  • After, control: press 220 800 over Messages still reports stale_target.

Validation

  • iOS dispatch tests at 4bc02d7: 5 pass. The two new regressions (background in place, stopped app launches) each failed before their fix.
  • macOS host lane, local at 4bc02d7: 434 tests, 0 failures.
  • Live run with this worktree's CLI and an isolated state dir; simulator viewed in the T3 Device panel.
  • Unverified: landscape hit-test point; iOS 27.2 / fr-FR.

🤖 Generated with Claude Code

A coordinate tap while the session app is in the background used to
activate the session app first (stale_target), so a tap on a
notification banner landed on the app instead. When the accessibility
hit test at the point answers SpringBoard's pid, the tap now runs
against SpringBoard without activation. A point over another app, or a
point the hit test does not answer, keeps the activation.

Fixes #4655

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Size Report

Metric Base Current Diff
Installed (including dependencies) 6.48 MB 6.48 MB +2.9 kB
Package (unpacked) 6.48 MB 6.48 MB +2.9 kB
Package (download) 1.97 MB 1.97 MB +547 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 19.5 ms 19.6 ms +0.0 ms
CLI --help 41.0 ms 42.0 ms +1.1 ms

thymikee and others added 2 commits November 21, 2026 10:39
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g springboard

Reading the lazy springboard application for every command threw
NSInternalInconsistencyException on the macOS runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apex Sentinel: 2 new findings on d96267d. The verdict and the full list are in the summary comment.

…up off screen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 4bc02d7

Since the review of d96267d: 0 new · 0 still open · 2 no longer raised (2 marked fixed)

No open findings.

2 findings below minor hidden (user_settings.min_severity).

1 new finding away from what changed since d96267d not shown. Comment @apex-sentinel-staging review for a full review.

Reviewed with this repository's own Sentinel configuration (e52b3066affd).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@thymikee

Copy link
Copy Markdown
Member Author

This PR is ready at 4bc02d7. Not blocking: the off-screen test comment says "a point the hit test does not answer", but the bounds guard rejects that point before the hit test, and the timeout and other-app paths have no test; the hit test runs on the main actor without the private queue and in-flight guard that the custom-action read uses, so repeated taps against a wedged testmanagerd could stack abandoned lookups; and the hit-test point is not rotated for landscape the way synthesized gestures are, so a landscape banner press is worth checking. These can be taken or left, as follow-ups.

CI is green, with 22 checks and none failing at 4bc02d7. There are no conflicts. No merge step remains beyond the usual approval, because the live banner evidence is in the body and the author ties it to 4bc02d7. The delta from d96267d only adds the state and bounds guards, which do not affect the banner route.

Not verified here: the iOS unit tests and a device run, that testmanagerd replies off the main queue, that Control Center is SpringBoard-owned, and landscape hit-test coordinates.

Both earlier inline threads are fixed at this head and can be resolved: the stopped or unknown app guard (#4884 (comment)) and the off-screen stall, now covered by the bounds guard (#4884 (comment)).

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Nov 21, 2026
@thymikee
thymikee merged commit da3d360 into main Nov 21, 2026
25 of 26 checks passed
@thymikee
thymikee deleted the t3/fix-ios-notification-banner-press branch November 21, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: a coordinate press on a notification banner activates the session app first (stale_target), so the banner never gets the tap

1 participant